﻿using System;

namespace TextEditor
{
   

    public class A_ShowMark : A_Action
    {
        public override string ActionName()
        {
            return "showmark";
        }

        public override int CheckState()
        {
            return (base.myOwnerDocument.Info.ShowMark ? 1 : 0);
        }

        public override bool Execute()
        {
            base.myOwnerDocument.Info.ShowMark = base.Param1 == "1";
            base.myOwnerDocument.Refresh();
            return true;
        }
    }
}

